package com.bdqn.pojo;


import java.util.Date;
import java.util.List;

public class SysUser {

  private int id;
  private String account;
  private String realName;
  private String password;
  private int sex;
  private Date birthday;
  private String phone;
  private String address;
  private int roleId;
  private String idPicPath;
  private String workPicPath;
  private int createdUserId;
  private Date createdTime;
  private int updatedUserId;
  private Date updatedTime;
  private String userRoleName; // 角色名称
  private  SysRole sysRole;//系统角色实体
  private List<Address> addressList;//用户地址列表

  @Override
  public String toString() {
    return "SysUser{" +
            "id=" + id +
            ", account='" + account + '\'' +
            ", realName='" + realName + '\'' +
            ", password='" + password + '\'' +
            ", sex=" + sex +
            ", birthday=" + birthday +
            ", phone='" + phone + '\'' +
            ", address='" + address + '\'' +
            ", roleId=" + roleId +
            ", idPicPath='" + idPicPath + '\'' +
            ", workPicPath='" + workPicPath + '\'' +
            ", createdUserId=" + createdUserId +
            ", createdTime=" + createdTime +
            ", updatedUserId=" + updatedUserId +
            ", updatedTime=" + updatedTime +
            ", userRoleName='" + userRoleName + '\'' +
            ", sysRole=" + sysRole +
            ", addressList=" + addressList +
            '}';
  }

  public SysUser() {
  }

  public SysUser(String account, String realName, String password, int sex, Date birthday, String phone, String address, int roleId, int createdUserId, Date createdTime) {
    this.account = account;
    this.realName = realName;
    this.password = password;
    this.sex = sex;
    this.birthday = birthday;
    this.phone = phone;
    this.address = address;
    this.roleId = roleId;
    this.createdUserId = createdUserId;
    this.createdTime = createdTime;
  }

  public SysUser(int id, String account, String realName, String password, int sex, Date birthday, String phone, String address, int roleId, String idPicPath, String workPicPath, int createdUserId, Date createdTime, int updatedUserId, Date updatedTime, String userRoleName, SysRole sysRole, List<Address> addressList) {
    this.id = id;
    this.account = account;
    this.realName = realName;
    this.password = password;
    this.sex = sex;
    this.birthday = birthday;
    this.phone = phone;
    this.address = address;
    this.roleId = roleId;
    this.idPicPath = idPicPath;
    this.workPicPath = workPicPath;
    this.createdUserId = createdUserId;
    this.createdTime = createdTime;
    this.updatedUserId = updatedUserId;
    this.updatedTime = updatedTime;
    this.userRoleName = userRoleName;
    this.sysRole = sysRole;
    this.addressList = addressList;
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public String getAccount() {
    return account;
  }

  public void setAccount(String account) {
    this.account = account;
  }

  public String getRealName() {
    return realName;
  }

  public void setRealName(String realName) {
    this.realName = realName;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public int getSex() {
    return sex;
  }

  public void setSex(int sex) {
    this.sex = sex;
  }

  public Date getBirthday() {
    return birthday;
  }

  public void setBirthday(Date birthday) {
    this.birthday = birthday;
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }

  public int getRoleId() {
    return roleId;
  }

  public void setRoleId(int roleId) {
    this.roleId = roleId;
  }

  public String getIdPicPath() {
    return idPicPath;
  }

  public void setIdPicPath(String idPicPath) {
    this.idPicPath = idPicPath;
  }

  public String getWorkPicPath() {
    return workPicPath;
  }

  public void setWorkPicPath(String workPicPath) {
    this.workPicPath = workPicPath;
  }

  public int getCreatedUserId() {
    return createdUserId;
  }

  public void setCreatedUserId(int createdUserId) {
    this.createdUserId = createdUserId;
  }

  public Date getCreatedTime() {
    return createdTime;
  }

  public void setCreatedTime(Date createdTime) {
    this.createdTime = createdTime;
  }

  public int getUpdatedUserId() {
    return updatedUserId;
  }

  public void setUpdatedUserId(int updatedUserId) {
    this.updatedUserId = updatedUserId;
  }

  public Date getUpdatedTime() {
    return updatedTime;
  }

  public void setUpdatedTime(Date updatedTime) {
    this.updatedTime = updatedTime;
  }

  public String getUserRoleName() {
    return userRoleName;
  }

  public void setUserRoleName(String userRoleName) {
    this.userRoleName = userRoleName;
  }

  public SysRole getSysRole() {
    return sysRole;
  }

  public void setSysRole(SysRole sysRole) {
    this.sysRole = sysRole;
  }

  public List<Address> getAddressList() {
    return addressList;
  }

  public void setAddressList(List<Address> addressList) {
    this.addressList = addressList;
  }
}
